﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>定位字符串和子串</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div style="text-align: center">
            <table border="1" style="border-left-color: #3399ff; border-bottom-color: #3399ff;
                width: 400px; border-top-style: solid; border-top-color: #3399ff; border-right-style: solid;
                border-left-style: solid; border-right-color: #3399ff; border-bottom-style: solid">
                <tr>
                    <td colspan="2" style="color: #3366ff">
                        定位字符串和字串</td>
                </tr>
                <tr>
                    <td style="width: 182px">
                        字符串：</td>
                    <td style="width: 100px">
                        <asp:TextBox ID="TxtString" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="width: 182px">
                        从字符串中取出某字符：</td>
                    <td style="width: 100px">
                        <asp:TextBox ID="TxtS" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="width: 182px">
                        该字符在字符串中<br />
                        第一次出现的位置：</td>
                    <td style="width: 100px">
                        <asp:Label ID="lblResult" runat="server" Width="162px"></asp:Label></td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:Button ID="BtnOK" runat="server" OnClick="BtnOK_Click" Text="确定" Width="49px" /></td>
                </tr>
            </table>
        </div>
    
    </div>
    </form>
</body>
</html>
